package net;

import java.net.Inet4Address;
import java.net.InetAddress;
import java.net.UnknownHostException;

/**
 * @author Mark
 * @version 1.0
 * @date 2020/5/17 17:09
 * @description 网络IP
 */
public class NetIp {
    public static void main(String[] args) {
        try {
            InetAddress byName = Inet4Address.getByName("127.0.0.1");
            System.out.println("byName = " + byName);
        } catch (UnknownHostException e) {
            e.printStackTrace();
        }

        // 端口进程

    }
}
